def add(x, y):
    return x + y


def subtract(x, y):
    return x - y


def multiply(x, y):
    return x * y


def devide(x, y):
    return x/y


def devide_int(x, y):
    return x//y


def sqrt(x):
    return x**0.5


print("欢迎使用计算器")
print("1、加法")
print("2、减法")
print("3、乘法")
print("4、除法")
print("5、整除")
print("6、开方")


choice=input("请选择您要进行的运算(输入数字1-6):")
print("开始计算")


num1=int(input("请输入第一个数字："))
num2=int(input("请输入第二个数字："))


if choice == '1':
    print(num1, "+", num2, "=", add(num1, num2))

elif choice == '2':
    print(num1, "-", num2, "=", subtract(num1, num2))

elif choice == '3':
    print(num1, "*", num2, "=", multiply(num1, num2))

elif choice == '4':
    print(num1, "/", num2, "=", devide(num1, num2))

elif choice == '5':
    print(num1, "//", num2, "=", devide_int(num1, num2))

elif choice == '6':
    print(num1, "**0.5", "=", sqrt(num1))
    print(num2, "**0.5", "=", sqrt(num2))

else:
    print("Error")